<template>
  <div class="father">
    <!-- -->
    <button @click="selfShowName()">展示名称</button>
    <Son/>
  </div>
</template>

<script>
import Son from './Son.vue';
export default {
  components: { Son },
  name: 'AppFather',

  data() {
    return {
      
    };
  },

  mounted() {
  },

  methods: {
    selfShowName(){
        this.$bus.$emit("showName")
    }
  },
};
</script>

<style scoped>
.father{
    width: 100px;
    height: 100px;
    background-color: aquamarine;
}
</style>